package com.logic.landseaserver.ws.request;

import com.logic.landseaserver.domain.PropertySign;

public class PropertySignReq {
    private Integer id;
    private String contractName;
    private Integer contractId;
    private Integer propertyId;
    private Boolean isFinalSigned;
    private String comment;
    private String signVerson;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContractName() {
        return contractName;
    }

    public void setContractName(String contractName) {
        this.contractName = contractName;
    }

    public Integer getContractId() {
        return contractId;
    }

    public void setContractId(Integer contractId) {
        this.contractId = contractId;
    }

    public Integer getPropertyId() {
        return propertyId;
    }

    public void setPropertyId(Integer propertyId) {
        this.propertyId = propertyId;
    }

    public Boolean getIsFinalSigned() {
        return isFinalSigned;
    }

    public void setIsFinalSigned(Boolean isFinalSigned) {
        this.isFinalSigned = isFinalSigned;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getSignVerson() {
        return signVerson;
    }

    public void setSignVerson(String signVerson) {
        this.signVerson = signVerson;
    }


    public static PropertySign toPropertyPOJO(PropertySignReq req) {
        PropertySign propertySign = new PropertySign();
        propertySign.setId(req.getId());
        propertySign.setContractName(req.getContractName());
        propertySign.setContractId(req.getContractId());
        propertySign.setComment(req.getComment());
        propertySign.setPropertyId(req.getPropertyId());
        propertySign.setIsFinalSigned(req.getIsFinalSigned());
        propertySign.setSignVersion(req.getSignVerson());
        return propertySign;
    }
}